package simorg.controller;

import java.util.HashMap;

import simorg.actions.Action;
import simorg.actions.UserBatchEnroll;
import simorg.actions.UserDelete;
import simorg.actions.UserEnroll;
import simorg.actions.UserList;
import simorg.actions.UserNew;
import simorg.actions.UserSave;
import simorg.actions.UserUnenroll;
import simorg.actions.UserView;

public class UserController extends Controller {

	public static final String controllerName = "user";
	public UserController() {
		this.name = controllerName;
		this.actions = new HashMap<String, Action>();
		this.actions.put(UserView.actionName, new UserView());
		this.actions.put(UserSave.actionName, new UserSave());
		this.actions.put(UserNew.actionName, new UserNew());
		this.actions.put(UserEnroll.actionName, new UserEnroll());
		this.actions.put(UserBatchEnroll.actionName, new UserBatchEnroll());
		this.actions.put(UserList.actionName, new UserList());
		this.actions.put(UserDelete.actionName, new UserDelete());
		this.actions.put(UserUnenroll.actionName, new UserUnenroll());
		this.defaultAction = new UserView();
	}
}
